
#!/bin/bash

# Set build target for Linux
export GOOS=linux
export GOARCH=amd64

# Build the application
echo "Building for Linux..."
go build -o health-check main.go

if [ $? -eq 0 ]; then
    echo "Build successful! Binary: health-check"
    ls -la health-check
else
    echo "Build failed!"
    exit 1
fi
